//
//  UIView+HMBadge.h
//  Community
//
//  Created by haozy on 2019/9/3.
//  Copyright © 2019 bingqing. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface UIView (HMBadge)
/**
 *  通过创建label，显示小红点；
 */
@property (nonatomic, strong) UILabel *badge;

/**
 *  显示小红点
 *  @magin 小红点距离控件上方距离
 */
//- (void)showBadgeWithTopMagin:(CGFloat)magin;

- (void)showBadgeWithNumber:(NSString *)magin;
- (void)showBadgeWithNumber:(NSString *)magin andRightRange:(NSInteger)rightRange topRange:(NSInteger)topRange;

/**
 *  隐藏小红点
 */
- (void)hidenBadge;

@end

NS_ASSUME_NONNULL_END
